<?php session_start(); 
      if ($_REQUEST['host']) {
      $_SESSION['host'] =  $_REQUEST['host'];
      }
?><h1 id="title"><a href="main.php?host=<?php echo $_SESSION['host']; ?>">CrapTunes</a></h1>

<a class="button" href="#" onclick="document.location = newLocation('controls')" title="Controls">Controls</a>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>

    <script type="text/javascript" src="lib/prototype.js"></script>
    <script type="text/javascript" src="lib/scriptaculous.js"></script>
    <script type="text/javascript" src="server.js"></script>
    <script type="text/javascript" src="main.js"></script>
    <script type="text/javascript" src="itunesmini.js"></script>

    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
    <link rel="stylesheet" href="http://ebaspace.com/iphoneport/wp-content/themes/iPhone WP/style.css" type="text/css" media="screen" />
    <style>
      h1 a {
      text-decoration:bold;
      color:#fff;
      }
    </style>
    <meta name="generator" content="WordPress 2.3.3" /> <!-- leave this for stats -->
    <title>iTunes</title>

    <!--we need this for plugins-->
	  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://ebaspace.com/iphoneport/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://ebaspace.com/iphoneport/wp-includes/wlwmanifest.xml" /> <!-- awmp 2.0.3 -->
    <meta name="description" content="Build iPhone webapps with WordPress theme."/><!-- /awmp -->
    <script type="application/x-javascript" src="iphone.js"></script>
    <script>
      <?php
         function bool($key) {
         echo 'var ' . $key . ' = ' . (isset($_REQUEST[$key]) ? 'true' : 'false') . ';';
         }
         function variable($key) {
         echo 'var ' . $key . ' = ' . (isset($_REQUEST[$key]) ? '"' . $_REQUEST[$key] . '"' : '0') . ';';
         }
         bool('artists');
         bool('albums');
         bool('songs');
         bool('controls');
         variable('artist');
         variable('album');
         ?>
    </script>
  </head>
  <body onload="setHost('<?php echo $_SESSION['host']; ?>'); onLoad();">

    <ul id="mainList" id="home" title="Home" selected="true">

    </ul>

    <style type="text/css">
      <!--
          .style1 {font-size: 10px}
        -->
    </style>

<div id="mainJS">
  <!-- the communication is done here -->
</div>

  </body>
</html>

